package grape.attend.rest.vacation.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 假期表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="假期表更新表单对象")
public class VacationUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;
    @NotEmpty(message="名称不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotEmpty(message="请假单位不能为空")
    @ApiModelProperty(value = "请假单位，字典id")
    private String leaveUnitDictId;

    @NotEmpty(message="计算请假时长方式不能为空")
    @ApiModelProperty(value = "计算请假时长方式，字典id")
    private String leaveCalTypeDictId;

    @ApiModelProperty(value = "备注")
    private String remark;



}
